Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fromHTML for Unicode text support #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Enet4
Copy link
Collaborator

@Enet4 Enet4 commented Jun 19, 2020

This PR aggregates some changes which enable extended character sets in text rendered via the deprecated function fromHTML. This may relate to some issues presented in the original repository, although they mostly relate to the new HTML API.

  • unquote computed CSS property values for a proper font family detection (e.g. "Times New Roman" was not being perceived as the Times font because of the quotes)
  • Use pdfEscape16 for rendering text with the "Identity-H" encoding, by turning the strings into hexadecimal glyph codes
  • remove extra left margin indentation which was conflicting with some html layouts

- unquote computed CSS property values for
  a proper font family detection
- Use pdfEscape16 for
  rendering Identity-H text,
  turning plain strings into hexadecimal glyph codes
- remove extra left marging indentation which was conflicting with
  some html layouts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant